﻿using ChurchDiary.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChurchDiary.TableEntity
{
    
    public class EntityChangePassword
    {
        public string OldPassword { get; set; }
        public string NewPassword { get; set; }
        public string ConfirmPassword { get; set; }
    }
    


    public class BaseEntity
    {
        public BaseEntity()
        {
            CreatedBy = Current.Userid;
            UpdatedBy = Current.Userid;
            CreatedOn = DateTime.UtcNow;
            UpdatedOn = DateTime.UtcNow;
            Status = 1;
        }
        /// <summary>
        /// Status Is Common for all
        /// Check CommonStatus Enum
        /// </summary>
        public int Status { get; set; }
        public Guid? CreatedBy { get; set; }
        public Guid? UpdatedBy { get; set; }
        public DateTime? CreatedOn { get; set; }
        public DateTime? UpdatedOn { get; set; }
        public string IpAddress { get; set; }
        [NotMapped]
        public int TotalRecords { get; set; }
    }


    public class EntityAuthenticationMode
    {
        public int AuthenticationModeId { get; set; }
        public string AuthenticationMode { get; set; }
    }

}
